<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

?>
{
    "name": "<?php echo $model->name; ?>",
    "capacity": <?php echo $model->capacity; ?>,
    "type": <?php echo $model->typeRuangan->id; ?>,
    "roomTypes": [
        <?php foreach($roomTypes as $roomType) { ?>
        {
            "id": <?php echo $roomType->id; ?>,
            "label": "<?php echo $roomType->name; ?>"
        },
        <?php } ?>
    ],
    "user": {
        <?php //TODO ?>
    }
}